<template>
    <LazyViewsRegisterM v-if="pageStore.isMobile" />
    <LazyViewsRegisterP v-else />
</template>
<script setup>
const pageStore = usePageStore();

definePageMeta({
    pageName: "注册",
    alias: "/register.html",
    middleware: [
        function (to, from) {
            const pageStore = usePageStore();
            if (!["login", "register", "buyDetail", "updatePwd"].includes(from.name)) {
                pageStore.loginBackUrl = from.path;
            }
        },
    ],
});
</script>
<style lang="scss" scoped></style>
